<?php
namespace app\common\validate;

use think\Validate;

class Activity extends Validate
{
    protected $rule = [
        'title|活动名称'  =>  'require|max:50',
        'content|活动内容'  =>  'require',
        'start_time|活动开始时间'  =>  'require',
        'end_time|活动结束时间'  =>  'require',
        'img|缩略图'  =>  'url',
    ];
}